package com.he.DesignPatterns.decorator.demo3_adater;

/**
 * @description: 适配器类  实现扩展后的接口，并引入原来的对象
 * @Author: HCL
 * @Date: 2024/8/27 14:46
 */
public class AdapterClass implements NewInterface{

    private QueryInterface queryInterface;

    public AdapterClass(QueryInterface queryInterface){
        this.queryInterface = queryInterface;
    }
    @Override
    public void queryData() {
        queryInterface.queryData();
    }

    @Override
    public void updateData() {
        System.out.println("新增的更新操作_适配器模式");
    }
}
